package com.cinc.ebc.mm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.ebc.mm.entity.MmMaterialStock;
import com.cinc.ebc.mm.model.MmRptMaterialStockWarehouseStatModel;
import com.cinc.ebc.mm.model.MmRptMaterialStockWarehouseStatTotalModel;
import com.cinc.ebc.mm.vo.MmRptMaterialStockStatPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 库存量
 * @Author: jeecg-boot
 * @Date: 2022-04-10
 * @Version: V1.0
 */
public interface MmMaterialStockMapper extends BaseMapper<MmMaterialStock> {

    MmMaterialStock selectMaterialStock(@Param("materialId") String materialId, @Param("warehouseId") String warehouseId,
                                        @Param("locationId") String locationId, @Param("batchNo") String batchNo, @Param("projectId") String projectId);

    List<MmRptMaterialStockWarehouseStatModel> selectRptWarehouseStatList(Page<MmRptMaterialStockWarehouseStatModel> page, @Param("paramModel")MmRptMaterialStockStatPage mmRptMaterialStockStatPage);

    MmRptMaterialStockWarehouseStatTotalModel selectRptWarehouseStatTotal(@Param("paramModel")MmRptMaterialStockStatPage mmRptMaterialStockStatPage);
}
